import { S } from '../s';
import { IPSCtrlMsgItem } from './ipsctrl-msg-item';
import { IPSLanguageRes } from './ipslanguage-res';
import { PSModelObjectImpl } from '../psmodel-object-impl';

export class PSCtrlMsgItemImpl
  extends PSModelObjectImpl
  implements IPSCtrlMsgItem
{
  get content(): string {
    return this.M.content;
  }

  protected contentpslanguageres: IPSLanguageRes;
  getContentPSLanguageRes(): IPSLanguageRes | null {
    return (
      this.contentpslanguageres ||
      (this.contentpslanguageres = this.fillObjectModel(
        S._276,
        this.M.getContentPSLanguageRes,
        S._2dc,
      ) as IPSLanguageRes)
    );
  }

  get timeout(): number {
    return this.M.timeout != null ? this.M.timeout : -1;
  }
  get cls(): string {
    return 'PSCtrlMsgItemImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._3f4) return true;
    return super.instanceof(cls);
  }
}
